package methodTest

import "fmt"

type Delete interface {
	delete()
}
type Insert interface {
	insert()
}
type Crud interface {
	Delete
	Insert
}
type exCrud struct {
	Crud
}

func (c *exCrud) delete() {
	fmt.Printf("%p\n", c)
	fmt.Println("删除成功")
}
func (c *exCrud) insert() {
	fmt.Printf("%p\n", c)
	fmt.Println("插入成功")
}

func CrudTest() {
	var e exCrud
	var c Crud = &e
	c.insert()
	c.delete()

}
